﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Box_games
{
    public partial class Login : Form
    {
        public string name;
        public Login()
        {
            InitializeComponent();
        }

        private void Form4_Load(object sender, EventArgs e)
        {
            Checkpoint.f4 = this;
            single.f4 = this;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string sql = $"select * from Guan where Name ='{textBox1.Text}'";
            var ds = DBHelpe.Select(sql);
            
            if (textBox1.Text=="")
            {
                MessageBox.Show("请输入昵称");
            }
       
            else
            {
                Main main = new Main();
                main.Show();
                this.Hide();
            }
            
        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {
            Checkpoint.f4 = this;
            single.f4 = this;
        }
    }
}
